package maria.carne.cat;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.SystemClock;
import android.util.DisplayMetrics;
import android.view.animation.AnimationUtils;
import android.widget.ImageView;

public class Mcm extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
      //variables globals
  		VG.Screen.metrics = new DisplayMetrics();
  		getWindowManager().getDefaultDisplay().getMetrics(VG.Screen.metrics);
        
        ImageView rodaanima = (ImageView)findViewById(R.id.rodablava);
		rodaanima.startAnimation(AnimationUtils.loadAnimation(this, R.anim.roda));
		Thread t = new Thread() {
			public void run() {
				try {
					sleep(5000);
					Intent i = new Intent("maria.carne.cat.PLAY");
					startActivity(i);
				}catch (InterruptedException e) {
					e.printStackTrace();
				}finally {
					finish();
				}
			}
		};
		t.start();
    }
}